<template>
  <div>
    <el-button :size="size"
    :type="type"
    :plain="plain"
    :round="round"
    :circle="circle"
    :loading="loading"
    :disabled="disabled"
    :icon="icon"
    :autofocus="autofocus"
    :native-type="nativeType" @click="handleClick">{{text}}</el-button>
  </div>
</template>

<script>
  export default {
    name: "customButton",
    methods: {
      handleClick() {
        this.$emit('handleClick')
      }
    },
    props: {
      text: {
        type: String,
        default: '默认按钮'
      },
      size: String,
      type: String,
      plain: {
        type: Boolean,
        default: false
      },
      round: {
        type: Boolean,
        default: false
      },
      circle: {
        type: Boolean,
        default: false
      },
      loading: {
        type: Boolean,
        default: false
      },
      icon: String,
      autofocus: {
        type: Boolean,
        default: false
      },
      nativeType: {
        type: String,
        default: 'button'
      }
    }
  }
</script>

<style scoped>

</style>
